package com.htgd.gardenexpo.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.htgd.gardenexpo.entity.GeConIntegralDeductionDetails;
import com.htgd.gardenexpo.dao.GeConIntegralDeductionDetailsDao;
import com.htgd.gardenexpo.page.IntegralDeductionDetailsQuery;
import com.htgd.gardenexpo.service.GeConIntegralDeductionDetailsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 使用详情 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
@Service
public class GeConIntegralDeductionDetailsServiceImpl extends ServiceImpl<GeConIntegralDeductionDetailsDao, GeConIntegralDeductionDetails> implements GeConIntegralDeductionDetailsService {

    @Autowired
    private GeConIntegralDeductionDetailsDao geConIntegralDeductionDetailsDao;

    @Override
    public PageInfo<GeConIntegralDeductionDetails> querylist(IntegralDeductionDetailsQuery integralDeductionDetailsQuery) {
        PageHelper.startPage(integralDeductionDetailsQuery.getPageNum(), integralDeductionDetailsQuery.getPageSize());
        List<GeConIntegralDeductionDetails> list = geConIntegralDeductionDetailsDao.querylist(integralDeductionDetailsQuery);
        return new PageInfo<>(list);
    }
}
